"You can also put up a requester with\nthree choices.\nHow do you like the demo so far?",
"Great|So so|Rubbish", NIL, NIL)) OF
0 : vEZRequest ("Too bad, I really hoped you\nwould like it better.",
"So what", NIL, NIL)
|
1 : vEZRequest ("I'm glad you like it so much.", "Fine", NIL, NIL)
|
2 : vEZRequest ("Maybe if you run the demo again\nyou'll REALLY like it.",
"Perhaps", NIL, NIL)
|
END;
ret := EZRequestTags (
"The number of responses is not limited to three\nas you can see. The gadgets are labeled with\nthe return code from EZRequest().\nPressing Return will choose 4, note that\n4's button text is printed in boldface.",
"You may also use C-style formatting codes in the body text.\nLike this:\n\n'The number %%ld is written %%s.' will give:\n\nThe number %ld is written %s.\n\nif you also pass '5' and '\"five\"' to EZRequest().",
"Proceed", NIL, ArgIs2(5, ADR("five")));
IF EZRequestTags (
"It is also possible to pass extra IDCMP flags\nthat will satisfy EZRequest(). This requester\nhas had DISKINSERTED passed to it.\n(Try inserting a disk).",
vEZRequest ("You inserted a disk.", "I did", NIL, NIL);
ELSE
vEZRequest ("You used the 'Continue' gadget\nto satisfy the requester.",
"I did", NIL, NIL);
END;
ret := EZRequestTags (
"Finally, it is possible to specify the position\nof the requester.\nE.g. at the top left of the screen, like this.\nThis works for all requesters, not just EZRequest()!",